import request from "@/utils/request";
export function listNongjtUserRegister(query){
  return request({
    url: "/nongjt/userRegister/queryUserRegisterList",
    method: "GET",
    params: query
  })
}

export function updateNongjtUserRegister(data){
  return request({
    url: "/nongjt/userRegister/updateUserRegister",
    method: "post",
    data: data  //使用json数据
  })
}

export function deleteNongjtUserRegister(id){
  return request({
    url: "/nongjt/userRegister/alterUserRegister/" + id,
    method: "delete",
  })
}

//获取饼状图数据
export function queryData(year){
  return request({
    url: "/nongjt/stats/getPiePicture/" + year,
    method: "GET",
  })
}
